﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace liaodcc
{
    class Program
    {
        static void Main(string[] args)
        {

            int cock, hen, chick;

            int count02 = 0;


            for (cock = 0; cock < 20; cock++)
            {
                for (hen = 0; hen <= 33; hen++)
                {

                    chick = 100 - cock - hen;

                    if (chick % 3 != 0)
                    {
                        continue;
                    }

                    if (cock + hen + chick == 100 && 5 * cock + 3 * hen + chick / 3 == 100)
                    {
                        count02++;
                        Console.WriteLine("第{0}种情况：公鸡{1}只，母鸡{2}只，小鸡{3}只。", count02, cock, hen, chick);
                    }
                }
            }

            Console.WriteLine("总共有{0}种情况。", count02);

            Console.ReadKey();
        }
    }
}
